package com.briup.test;

/**
 * @author 甜圆
 * @version v1.0.1
 * @date 2025/9/24 15:23
 * @package com.briup.test
 * @copyright 甜圆
 */
public class Wangsan {
    public Wangsan print() {
        class Wangxiaosan extends Wangsan{
            private int age = 18;
        }
        return new Wangxiaosan();
    }

    public static void main(String[] args) {
        Wangsan wangsan = new Wangsan();
        Wangsan wangxiaosan = wangsan.print();
        System.out.println(wangxiaosan);
    }
}